<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let pig = {
      uname: 'miaomiao',
      age: 26,
      gender: '女'
    }
    console.log(pig)
    // 修改属性值
    pig.gender = '男'
    // 增加
    pig.hobby = '羽毛球'
    // 删除,了解
    delete pig.age

    // 另外一种查找方法，[]中必须要加引号
    console.log(pig['gender'])

    console.log(pig)


    let goods = {
      name: '小米10青春版',
      num: '1200386468',
      weight: '0.55kg',
      address: '中国大陆'
    }

    console.log(goods)
    // 查找对象的属性
    console.log(goods.address)


  </script>

</body>

</html>